/*Confidential and Proprietary, Subject to the Non-Disclosure Agreement,
Version 1.0, between the Development Gateway Foundation, Inc and the
Recipient Copyright 2001-2004 Development Gateway Foundation, Inc.

Local Projects Database
*/
package ro.gateway.aida.db;

/**
 * @author Mihai Postelnicu
 * e-mail: mihai@ro-gateway.org
 */
public class PostgresDBConnector extends DBConnector {
	protected String dbName;

	public PostgresDBConnector(String dbName) {
		this.dbName=dbName;
		this.port=5432;
	}
	
	public String createURL() {
		return "jdbc:postgresql://"+host+":"+port+"/"+dbName;
	}

	/**
	 * @return Returns the dbName.
	 */
	public String getDbName() {
		return dbName;
	}
	/**
	 * @param dbName The dbName to set.
	 */
	public void setDbName(String database) {
		this.dbName = database;
	}
	
	public String driverName() {
		return "org.postgresql.Driver";
	}
	
	public String getDriverClass() {
	    return DRIVER;
	}
	
	
	private static final String DRIVER="org.postgresql.Driver";
}
